
import sys

def two_sum(nums, target):
    
    d = dict()

    for i in range(len(nums)):
        mul = target - nums[i]
        if mul in d:
            return [d[mul], i]
        else:
            d[nums[i]] = i

if __name__ == '__main__':
    nums = [int(item) for item in sys.argv[1:len(sys.argv)-1]]
    target = int(sys.argv[-1])
    print two_sum(nums, target) 


